
#import <Foundation/Foundation.h>
#define kAdvertisementViewHeight 187

typedef NS_ENUM(NSUInteger, SEGEnumAdvertismentType) {
    SEGEnumAdvertismentType_NO = 0, /*首页*/
    SEGEnumAdvertismentType_Find = 1, /*发现*/
    SEGEnumAdvertismentType_Small = 2, /*集市*/
    SEGEnumAdvertismentType_Topic = 3, /*话题（帮帮广告位）*/
    SEGEnumAdvertismentType_Sign = 4, /*签到*/
    SEGEnumAdvertismentType_ACT = 5,  /*活动*/
    SEGEnumAdvertismentType_House = 6  /*房屋租售首页*/
};

@class SEGAdvertismentModel;

@interface SEGAdvertisementViewModel : NSObject
@property (nonatomic, assign) CGFloat totalHeight;
@property (nonatomic, assign) CGFloat cornerRadius;
@property (nonatomic, assign) CGFloat widgetWidth;//控件宽度
@property (nonatomic, assign) CGFloat widgetHeight;//控件高度
@property (nonatomic, strong) id businessData;//业务数据

@property (nonatomic, assign) NSInteger locationShowType;
//@property (nonatomic, strong)SEGCommunityLocationViewModel *communityModel;
@property (nonatomic, copy) NSString *communityName;
@property (nonatomic, assign) NSInteger adType;
@property (nonatomic, strong)NSArray<SEGAdvertismentModel*> *adSource;

-(instancetype)init;
@end

@interface SEGAdvertismentModel : NSObject
@property (nonatomic, copy) NSString* typeId;
@property (nonatomic, copy) NSString* position;
@property (nonatomic, copy) NSString* pic;
@property (nonatomic, copy) NSString* updateTime;
@property (nonatomic, copy) NSString* title;
@property (nonatomic, copy) NSString* href;//对应话题的字段：pictorialId
@property (nonatomic, copy) NSString* runingSecond;
@property (nonatomic, copy) NSString* type;
@property (nonatomic, copy) NSString* advertisingId;
@end

